<#setting classic_compatible=true>
<#assign base=rc.contextPath />
<html lang="zh-cn">
	<head>
		<meta charset="utf-8">
	    <meta name="renderer" content="webkit">
	    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
	    <meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1"/>
		<meta name="apple-mobile-web-app-capable" content="yes"/>
	    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
	    <meta name="format-detection" content="telephone=no"/>
	    <meta name="author" content="艾易网络科技有限公司-艾易设计-http://www.aiyiweb.net">
	    <meta name="description" content="网页描述文字">
	    <meta name="keywords" content="关键词,关键词">
	    <title>ZanYi</title>
	    <link rel="stylesheet" href="${rc.contextPath}/static/css/page.min.css" />
	    <script type="text/javascript" src="${base}/static/js/jquery-1.9.1.min.js"></script>
		<script type="application/javascript">
			var interval = setInterval("doReadCert()","1000");

			function doReadCert()
			{
				var strResult = CertCtl.readCert();
				var jsValue = eval('(' + strResult + ')');
				if(jsValue.resultFlag == 0)
				{
					$('#IDnumber').val(jsValue.resultContent.certNumber)
					$("#PhotoID").attr('src','data:image/jpeg;base64,' + jsValue.resultContent.identityPic);
					//如果招描到了，则停止扫
					clearInterval(interval);
					$("#auth-form").submit();
				}
				else
				{
					;
				}
			}


		</script>
	</head>

	<body>
		<header>
			<h6>身份认证</h6>
			<div class="img-box">
				<img src="${base}/static/image/nameb.png" alt="珲春市合作区物业维修资金查询系统" style="height: auto;width: 650px">
			</div>
		</header>
		<!---->
		<div class="auth-container">
			<form class="auth-form" id="auth-form" name="auth-form" action="${request.contextPath}/wqtouch/login" method="get">
				<div class="IDnumber-box" style="margin: 0 auto;">
					<input style="margin-bottom: 20px;" type="num" placeholder="请将身份证放置扫描处" name="papersCode" readonly id="IDnumber">
					<i class="clearfix"></i>
				</div>
				<div class="IDnumber-box"  style="margin: 0 auto">
					<input type="num" placeholder="请输入发票号码" name="invoiceNo" id="invoiceNo">
					<botton class="search-btn" onclick="document.forms['auth-form'].submit();">查询</botton>
					<i class="clearfix"></i>
				</div>
				<span style="visibility: hidden"><img id="PhotoID" name="Photo" src="${base}/image/timg.png" style="width:96px; height:94px;"/></span>
				<!--<input type="submit" class="auth-submit" id="auth-submit" value="请在右侧刷身份证">-->
			</form>
		</div>
		<object id="CertCtl" TYPE="application/cert-reader" width=0 height=0"></object>
		<script src="${base}/static/js/main.js"></script>
	</body>
</html>
